.class Lcom/baidu/mobad/feeds/BaiduNative$CustomIOAdEventListener;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Lcom/baidu/mobads/openad/interfaces/event/IOAdEventListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/baidu/mobad/feeds/BaiduNative;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = "CustomIOAdEventListener"
.end annotation


# instance fields
.field final synthetic a:Lcom/baidu/mobad/feeds/BaiduNative;

.field private b:Lcom/baidu/mobads/interfaces/feeds/IXAdFeedsRequestParameters;


# direct methods
.method public constructor <init>(Lcom/baidu/mobad/feeds/BaiduNative;Lcom/baidu/mobads/interfaces/feeds/IXAdFeedsRequestParameters;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/baidu/mobad/feeds/BaiduNative$CustomIOAdEventListener;->a:Lcom/baidu/mobad/feeds/BaiduNative;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    iput-object p2, p0, Lcom/baidu/mobad/feeds/BaiduNative$CustomIOAdEventListener;->b:Lcom/baidu/mobads/interfaces/feeds/IXAdFeedsRequestParameters;

    return-void
.end method


# virtual methods
.method public run(Lcom/baidu/mobads/openad/interfaces/event/IOAdEvent;)V
    .locals 11

    .line 1
    invoke-interface {p1}, Lcom/baidu/mobads/openad/interfaces/event/IOAdEvent;->getType()Ljava/lang/String;

    move-result-object v0

    const-string v1, "AdStarted"

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    const/4 v1, 0x0

    const/4 v2, 0x1

    if-eqz v0, :cond_6

    .line 2
    iget-object p1, p0, Lcom/baidu/mobad/feeds/BaiduNative$CustomIOAdEventListener;->a:Lcom/baidu/mobad/feeds/BaiduNative;

    invoke-static {p1}, Lcom/baidu/mobad/feeds/BaiduNative;->a(Lcom/baidu/mobad/feeds/BaiduNative;)Lcom/baidu/mobad/feeds/BaiduNative$BaiduNativeNetworkListener;

    move-result-object p1

    if-eqz p1, :cond_11

    .line 3
    new-instance p1, Ljava/util/ArrayList;

    invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V

    .line 4
    new-instance v0, Ljava/util/HashSet;

    invoke-direct {v0}, Ljava/util/HashSet;-><init>()V

    .line 5
    invoke-static {}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getInstance()Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;

    move-result-object v3

    invoke-virtual {v3}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getAdConstants()Lcom/baidu/mobads/utils/l;

    move-result-object v3

    const/4 v4, 0x0

    .line 6
    :goto_0
    iget-object v5, p0, Lcom/baidu/mobad/feeds/BaiduNative$CustomIOAdEventListener;->a:Lcom/baidu/mobad/feeds/BaiduNative;

    invoke-static {v5}, Lcom/baidu/mobad/feeds/BaiduNative;->b(Lcom/baidu/mobad/feeds/BaiduNative;)Lcom/baidu/mobads/production/c/c;

    move-result-object v5

    invoke-virtual {v5}, Lcom/baidu/mobads/production/c/c;->a()Ljava/util/ArrayList;

    move-result-object v5

    invoke-virtual {v5}, Ljava/util/ArrayList;->size()I

    move-result v5

    if-ge v4, v5, :cond_5

    .line 7
    iget-object v5, p0, Lcom/baidu/mobad/feeds/BaiduNative$CustomIOAdEventListener;->a:Lcom/baidu/mobad/feeds/BaiduNative;

    invoke-static {v5}, Lcom/baidu/mobad/feeds/BaiduNative;->b(Lcom/baidu/mobad/feeds/BaiduNative;)Lcom/baidu/mobads/production/c/c;

    move-result-object v5

    invoke-virtual {v5}, Lcom/baidu/mobads/production/c/c;->a()Ljava/util/ArrayList;

    move-result-object v5

    invoke-virtual {v5, v4}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;

    .line 8
    invoke-interface {v5}, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;->getAppPackageName()Ljava/lang/String;

    move-result-object v6

    .line 9
    invoke-interface {v5}, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;->getActionType()I

    move-result v7

    invoke-interface {v3}, Lcom/baidu/mobads/interfaces/utils/IXAdConstants;->getActTypeDownload()I

    move-result v8

    if-ne v7, v8, :cond_2

    if-eqz v6, :cond_1

    const-string v7, ""

    .line 10
    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v7

    if-nez v7, :cond_1

    const-string v7, "null"

    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v7

    if-nez v7, :cond_1

    invoke-virtual {v0, v6}, Ljava/util/HashSet;->contains(Ljava/lang/Object;)Z

    move-result v7

    if-eqz v7, :cond_0

    goto :goto_1

    .line 11
    :cond_0
    invoke-virtual {v0, v6}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z

    .line 12
    invoke-static {}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getInstance()Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;

    move-result-object v7

    invoke-virtual {v7}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getPackageUtils()Lcom/baidu/mobads/utils/r;

    move-result-object v7

    iget-object v8, p0, Lcom/baidu/mobad/feeds/BaiduNative$CustomIOAdEventListener;->a:Lcom/baidu/mobad/feeds/BaiduNative;

    .line 13
    invoke-static {v8}, Lcom/baidu/mobad/feeds/BaiduNative;->c(Lcom/baidu/mobad/feeds/BaiduNative;)Landroid/content/Context;

    move-result-object v8

    invoke-virtual {v7, v8, v6}, Lcom/baidu/mobads/utils/r;->isInstalled(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v6

    goto :goto_2

    :cond_1
    :goto_1
    const/4 v6, 0x0

    const/4 v7, 0x1

    goto :goto_4

    .line 14
    :cond_2
    invoke-interface {v5}, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;->getActionType()I

    move-result v7

    invoke-interface {v3}, Lcom/baidu/mobads/interfaces/utils/IXAdConstants;->getActTypeOpenExternalApp()I

    move-result v8

    if-ne v7, v8, :cond_3

    .line 15
    iget-object v7, p0, Lcom/baidu/mobad/feeds/BaiduNative$CustomIOAdEventListener;->a:Lcom/baidu/mobad/feeds/BaiduNative;

    invoke-static {v7, v5}, Lcom/baidu/mobad/feeds/BaiduNative;->a(Lcom/baidu/mobad/feeds/BaiduNative;Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;)I

    move-result v7

    invoke-interface {v3}, Lcom/baidu/mobads/interfaces/utils/IXAdConstants;->getActTypeDownload()I

    move-result v8

    if-ne v7, v8, :cond_3

    invoke-static {v6}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v7

    if-nez v7, :cond_3

    .line 16
    invoke-static {}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getInstance()Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;

    move-result-object v7

    invoke-virtual {v7}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getPackageUtils()Lcom/baidu/mobads/utils/r;

    move-result-object v7

    iget-object v8, p0, Lcom/baidu/mobad/feeds/BaiduNative$CustomIOAdEventListener;->a:Lcom/baidu/mobad/feeds/BaiduNative;

    .line 17
    invoke-static {v8}, Lcom/baidu/mobad/feeds/BaiduNative;->c(Lcom/baidu/mobad/feeds/BaiduNative;)Landroid/content/Context;

    move-result-object v8

    invoke-virtual {v7, v8, v6}, Lcom/baidu/mobads/utils/r;->isInstalled(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v6

    :goto_2
    xor-int/2addr v6, v2

    goto :goto_3

    :cond_3
    const/4 v6, 0x0

    :goto_3
    const/4 v7, 0x0

    :goto_4
    if-nez v7, :cond_4

    .line 18
    new-instance v7, Lcom/baidu/mobad/feeds/XAdNativeResponse;

    iget-object v8, p0, Lcom/baidu/mobad/feeds/BaiduNative$CustomIOAdEventListener;->a:Lcom/baidu/mobad/feeds/BaiduNative;

    iget-object v9, p0, Lcom/baidu/mobad/feeds/BaiduNative$CustomIOAdEventListener;->b:Lcom/baidu/mobads/interfaces/feeds/IXAdFeedsRequestParameters;

    .line 19
    invoke-static {v8}, Lcom/baidu/mobad/feeds/BaiduNative;->b(Lcom/baidu/mobad/feeds/BaiduNative;)Lcom/baidu/mobads/production/c/c;

    move-result-object v10

    invoke-virtual {v10}, Lcom/baidu/mobads/production/b;->getCurrentXAdContainer()Lcom/baidu/mobads/interfaces/IXAdContainer;

    move-result-object v10

    invoke-direct {v7, v5, v8, v9, v10}, Lcom/baidu/mobad/feeds/XAdNativeResponse;-><init>(Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;Lcom/baidu/mobad/feeds/BaiduNative;Lcom/baidu/mobads/interfaces/feeds/IXAdFeedsRequestParameters;Lcom/baidu/mobads/interfaces/IXAdContainer;)V

    .line 20
    invoke-virtual {v7, v6}, Lcom/baidu/mobad/feeds/XAdNativeResponse;->setIsDownloadApp(Z)V

    .line 21
    invoke-interface {p1, v7}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :cond_4
    add-int/lit8 v4, v4, 0x1

    goto/16 :goto_0

    .line 22
    :cond_5
    iget-object v0, p0, Lcom/baidu/mobad/feeds/BaiduNative$CustomIOAdEventListener;->a:Lcom/baidu/mobad/feeds/BaiduNative;

    invoke-static {v0, p1}, Lcom/baidu/mobad/feeds/BaiduNative;->a(Lcom/baidu/mobad/feeds/BaiduNative;Ljava/util/List;)Ljava/util/List;

    .line 23
    invoke-static {}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getInstance()Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;

    move-result-object v0

    invoke-virtual {v0}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getCommonUtils()Lcom/baidu/mobads/utils/h;

    move-result-object v0

    new-instance v1, Lcom/baidu/mobad/feeds/BaiduNative$CustomIOAdEventListener$1;

    invoke-direct {v1, p0, p1}, Lcom/baidu/mobad/feeds/BaiduNative$CustomIOAdEventListener$1;-><init>(Lcom/baidu/mobad/feeds/BaiduNative$CustomIOAdEventListener;Ljava/util/List;)V

    invoke-virtual {v0, v1}, Lcom/baidu/mobads/utils/h;->a(Ljava/lang/Runnable;)V

    goto/16 :goto_8

    .line 24
    :cond_6
    invoke-interface {p1}, Lcom/baidu/mobads/openad/interfaces/event/IOAdEvent;->getType()Ljava/lang/String;

    move-result-object v0

    const-string v3, "AdError"

    invoke-virtual {v3, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_7

    .line 25
    iget-object v0, p0, Lcom/baidu/mobad/feeds/BaiduNative$CustomIOAdEventListener;->a:Lcom/baidu/mobad/feeds/BaiduNative;

    invoke-static {v0}, Lcom/baidu/mobad/feeds/BaiduNative;->b(Lcom/baidu/mobad/feeds/BaiduNative;)Lcom/baidu/mobads/production/c/c;

    move-result-object v0

    invoke-virtual {v0}, Lcom/baidu/mobads/openad/c/c;->removeAllListeners()V

    .line 26
    invoke-interface {p1}, Lcom/baidu/mobads/openad/interfaces/event/IOAdEvent;->getData()Ljava/util/Map;

    move-result-object p1

    const-string v0, "message"

    invoke-interface {p1, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Ljava/lang/String;

    .line 27
    iget-object p1, p0, Lcom/baidu/mobad/feeds/BaiduNative$CustomIOAdEventListener;->a:Lcom/baidu/mobad/feeds/BaiduNative;

    invoke-static {p1}, Lcom/baidu/mobad/feeds/BaiduNative;->a(Lcom/baidu/mobad/feeds/BaiduNative;)Lcom/baidu/mobad/feeds/BaiduNative$BaiduNativeNetworkListener;

    move-result-object p1

    if-eqz p1, :cond_11

    .line 28
    invoke-static {}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getInstance()Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;

    move-result-object p1

    invoke-virtual {p1}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getCommonUtils()Lcom/baidu/mobads/utils/h;

    move-result-object p1

    new-instance v0, Lcom/baidu/mobad/feeds/BaiduNative$CustomIOAdEventListener$2;

    invoke-direct {v0, p0}, Lcom/baidu/mobad/feeds/BaiduNative$CustomIOAdEventListener$2;-><init>(Lcom/baidu/mobad/feeds/BaiduNative$CustomIOAdEventListener;)V

    invoke-virtual {p1, v0}, Lcom/baidu/mobads/utils/h;->a(Ljava/lang/Runnable;)V

    goto/16 :goto_8

    .line 29
    :cond_7
    invoke-interface {p1}, Lcom/baidu/mobads/openad/interfaces/event/IOAdEvent;->getType()Ljava/lang/String;

    move-result-object v0

    const-string v3, "AdUserClick"

    invoke-virtual {v3, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    const-string v3, "instanceInfo"

    const-string v4, "AdLpClosed"

    if-eqz v0, :cond_a

    .line 30
    iget-object v0, p0, Lcom/baidu/mobad/feeds/BaiduNative$CustomIOAdEventListener;->a:Lcom/baidu/mobad/feeds/BaiduNative;

    invoke-static {v0}, Lcom/baidu/mobad/feeds/BaiduNative;->a(Lcom/baidu/mobad/feeds/BaiduNative;)Lcom/baidu/mobad/feeds/BaiduNative$BaiduNativeNetworkListener;

    move-result-object v0

    instance-of v0, v0, Lcom/baidu/mobad/feeds/BaiduNative$FeedLpCloseListener;

    if-eqz v0, :cond_9

    .line 31
    invoke-interface {p1}, Lcom/baidu/mobads/openad/interfaces/event/IOAdEvent;->getData()Ljava/util/Map;

    move-result-object p1

    if-eqz p1, :cond_9

    .line 32
    invoke-interface {p1, v3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Ljava/lang/String;

    .line 33
    :goto_5
    iget-object v0, p0, Lcom/baidu/mobad/feeds/BaiduNative$CustomIOAdEventListener;->a:Lcom/baidu/mobad/feeds/BaiduNative;

    invoke-static {v0}, Lcom/baidu/mobad/feeds/BaiduNative;->d(Lcom/baidu/mobad/feeds/BaiduNative;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-ge v1, v0, :cond_9

    .line 34
    iget-object v0, p0, Lcom/baidu/mobad/feeds/BaiduNative$CustomIOAdEventListener;->a:Lcom/baidu/mobad/feeds/BaiduNative;

    invoke-static {v0}, Lcom/baidu/mobad/feeds/BaiduNative;->d(Lcom/baidu/mobad/feeds/BaiduNative;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/baidu/mobad/feeds/XAdNativeResponse;

    .line 35
    invoke-virtual {v0}, Lcom/baidu/mobad/feeds/XAdNativeResponse;->getUniqueId()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v3, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_8

    .line 36
    iget-object v3, p0, Lcom/baidu/mobad/feeds/BaiduNative$CustomIOAdEventListener;->a:Lcom/baidu/mobad/feeds/BaiduNative;

    invoke-static {v3}, Lcom/baidu/mobad/feeds/BaiduNative;->a(Lcom/baidu/mobad/feeds/BaiduNative;)Lcom/baidu/mobad/feeds/BaiduNative$BaiduNativeNetworkListener;

    move-result-object v3

    check-cast v3, Lcom/baidu/mobad/feeds/BaiduNative$FeedLpCloseListener;

    invoke-interface {v3, v0}, Lcom/baidu/mobad/feeds/BaiduNative$FeedLpCloseListener;->onAdClick(Lcom/baidu/mobad/feeds/NativeResponse;)V

    :cond_8
    add-int/lit8 v1, v1, 0x1

    goto :goto_5

    .line 37
    :cond_9
    iget-object p1, p0, Lcom/baidu/mobad/feeds/BaiduNative$CustomIOAdEventListener;->a:Lcom/baidu/mobad/feeds/BaiduNative;

    invoke-static {p1}, Lcom/baidu/mobad/feeds/BaiduNative;->a(Lcom/baidu/mobad/feeds/BaiduNative;)Lcom/baidu/mobad/feeds/BaiduNative$BaiduNativeNetworkListener;

    move-result-object p1

    instance-of p1, p1, Lcom/baidu/mobad/feeds/BaiduNative$FeedLpCloseListener;

    if-eqz p1, :cond_11

    iget-object p1, p0, Lcom/baidu/mobad/feeds/BaiduNative$CustomIOAdEventListener;->a:Lcom/baidu/mobad/feeds/BaiduNative;

    .line 38
    invoke-static {p1}, Lcom/baidu/mobad/feeds/BaiduNative;->b(Lcom/baidu/mobad/feeds/BaiduNative;)Lcom/baidu/mobads/production/c/c;

    move-result-object p1

    iget-object p1, p1, Lcom/baidu/mobads/production/b;->d:Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;

    invoke-interface {p1}, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;->getActionType()I

    move-result p1

    if-ne p1, v2, :cond_11

    .line 39
    iget-object p1, p0, Lcom/baidu/mobad/feeds/BaiduNative$CustomIOAdEventListener;->a:Lcom/baidu/mobad/feeds/BaiduNative;

    invoke-static {p1}, Lcom/baidu/mobad/feeds/BaiduNative;->c(Lcom/baidu/mobad/feeds/BaiduNative;)Landroid/content/Context;

    move-result-object p1

    invoke-static {p1}, Lcom/baidu/mobads/command/c/a;->a(Landroid/content/Context;)Lcom/baidu/mobads/command/c/a;

    move-result-object p1

    invoke-virtual {p1}, Lcom/baidu/mobads/command/c/a;->b()V

    .line 40
    iget-object p1, p0, Lcom/baidu/mobad/feeds/BaiduNative$CustomIOAdEventListener;->a:Lcom/baidu/mobad/feeds/BaiduNative;

    invoke-static {p1}, Lcom/baidu/mobad/feeds/BaiduNative;->c(Lcom/baidu/mobad/feeds/BaiduNative;)Landroid/content/Context;

    move-result-object p1

    invoke-static {p1}, Lcom/baidu/mobads/command/c/a;->a(Landroid/content/Context;)Lcom/baidu/mobads/command/c/a;

    move-result-object p1

    iget-object v0, p0, Lcom/baidu/mobad/feeds/BaiduNative$CustomIOAdEventListener;->a:Lcom/baidu/mobad/feeds/BaiduNative;

    .line 41
    invoke-static {v0}, Lcom/baidu/mobad/feeds/BaiduNative;->e(Lcom/baidu/mobad/feeds/BaiduNative;)Lcom/baidu/mobad/feeds/BaiduNative$CustomIOAdEventListener;

    move-result-object v0

    invoke-virtual {p1, v4, v0}, Lcom/baidu/mobads/openad/c/c;->addEventListener(Ljava/lang/String;Lcom/baidu/mobads/openad/interfaces/event/IOAdEventListener;)V

    goto/16 :goto_8

    .line 42
    :cond_a
    invoke-interface {p1}, Lcom/baidu/mobads/openad/interfaces/event/IOAdEvent;->getType()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v4, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_b

    iget-object v0, p0, Lcom/baidu/mobad/feeds/BaiduNative$CustomIOAdEventListener;->a:Lcom/baidu/mobad/feeds/BaiduNative;

    .line 43
    invoke-static {v0}, Lcom/baidu/mobad/feeds/BaiduNative;->a(Lcom/baidu/mobad/feeds/BaiduNative;)Lcom/baidu/mobad/feeds/BaiduNative$BaiduNativeNetworkListener;

    move-result-object v0

    instance-of v0, v0, Lcom/baidu/mobad/feeds/BaiduNative$FeedLpCloseListener;

    if-eqz v0, :cond_b

    .line 44
    iget-object p1, p0, Lcom/baidu/mobad/feeds/BaiduNative$CustomIOAdEventListener;->a:Lcom/baidu/mobad/feeds/BaiduNative;

    invoke-static {p1}, Lcom/baidu/mobad/feeds/BaiduNative;->c(Lcom/baidu/mobad/feeds/BaiduNative;)Landroid/content/Context;

    move-result-object p1

    invoke-static {p1}, Lcom/baidu/mobads/command/c/a;->a(Landroid/content/Context;)Lcom/baidu/mobads/command/c/a;

    move-result-object p1

    invoke-virtual {p1, v4}, Lcom/baidu/mobads/openad/c/c;->removeEventListeners(Ljava/lang/String;)V

    .line 45
    iget-object p1, p0, Lcom/baidu/mobad/feeds/BaiduNative$CustomIOAdEventListener;->a:Lcom/baidu/mobad/feeds/BaiduNative;

    invoke-static {p1}, Lcom/baidu/mobad/feeds/BaiduNative;->c(Lcom/baidu/mobad/feeds/BaiduNative;)Landroid/content/Context;

    move-result-object p1

    invoke-static {p1}, Lcom/baidu/mobads/command/c/a;->a(Landroid/content/Context;)Lcom/baidu/mobads/command/c/a;

    move-result-object p1

    invoke-virtual {p1}, Lcom/baidu/mobads/command/c/a;->c()V

    .line 46
    iget-object p1, p0, Lcom/baidu/mobad/feeds/BaiduNative$CustomIOAdEventListener;->a:Lcom/baidu/mobad/feeds/BaiduNative;

    invoke-static {p1}, Lcom/baidu/mobad/feeds/BaiduNative;->a(Lcom/baidu/mobad/feeds/BaiduNative;)Lcom/baidu/mobad/feeds/BaiduNative$BaiduNativeNetworkListener;

    move-result-object p1

    check-cast p1, Lcom/baidu/mobad/feeds/BaiduNative$FeedLpCloseListener;

    invoke-interface {p1}, Lcom/baidu/mobad/feeds/BaiduNative$FeedLpCloseListener;->onLpClosed()V

    goto/16 :goto_8

    .line 47
    :cond_b
    invoke-interface {p1}, Lcom/baidu/mobads/openad/interfaces/event/IOAdEvent;->getType()Ljava/lang/String;

    move-result-object v0

    const-string v2, "vdieoCacheSucc"

    invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_c

    .line 48
    iget-object p1, p0, Lcom/baidu/mobad/feeds/BaiduNative$CustomIOAdEventListener;->a:Lcom/baidu/mobad/feeds/BaiduNative;

    invoke-static {p1}, Lcom/baidu/mobad/feeds/BaiduNative;->a(Lcom/baidu/mobad/feeds/BaiduNative;)Lcom/baidu/mobad/feeds/BaiduNative$BaiduNativeNetworkListener;

    move-result-object p1

    instance-of p1, p1, Lcom/baidu/mobad/feeds/BaiduNative$VideoCacheListener;

    if-eqz p1, :cond_11

    .line 49
    iget-object p1, p0, Lcom/baidu/mobad/feeds/BaiduNative$CustomIOAdEventListener;->a:Lcom/baidu/mobad/feeds/BaiduNative;

    invoke-static {p1}, Lcom/baidu/mobad/feeds/BaiduNative;->a(Lcom/baidu/mobad/feeds/BaiduNative;)Lcom/baidu/mobad/feeds/BaiduNative$BaiduNativeNetworkListener;

    move-result-object p1

    check-cast p1, Lcom/baidu/mobad/feeds/BaiduNative$VideoCacheListener;

    invoke-interface {p1}, Lcom/baidu/mobad/feeds/BaiduNative$VideoCacheListener;->onVideoDownloadSuccess()V

    goto/16 :goto_8

    .line 50
    :cond_c
    invoke-interface {p1}, Lcom/baidu/mobads/openad/interfaces/event/IOAdEvent;->getType()Ljava/lang/String;

    move-result-object v0

    const-string v2, "vdieoCacheFailed"

    invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_d

    .line 51
    iget-object p1, p0, Lcom/baidu/mobad/feeds/BaiduNative$CustomIOAdEventListener;->a:Lcom/baidu/mobad/feeds/BaiduNative;

    invoke-static {p1}, Lcom/baidu/mobad/feeds/BaiduNative;->a(Lcom/baidu/mobad/feeds/BaiduNative;)Lcom/baidu/mobad/feeds/BaiduNative$BaiduNativeNetworkListener;

    move-result-object p1

    instance-of p1, p1, Lcom/baidu/mobad/feeds/BaiduNative$VideoCacheListener;

    if-eqz p1, :cond_11

    .line 52
    iget-object p1, p0, Lcom/baidu/mobad/feeds/BaiduNative$CustomIOAdEventListener;->a:Lcom/baidu/mobad/feeds/BaiduNative;

    invoke-static {p1}, Lcom/baidu/mobad/feeds/BaiduNative;->a(Lcom/baidu/mobad/feeds/BaiduNative;)Lcom/baidu/mobad/feeds/BaiduNative$BaiduNativeNetworkListener;

    move-result-object p1

    check-cast p1, Lcom/baidu/mobad/feeds/BaiduNative$VideoCacheListener;

    invoke-interface {p1}, Lcom/baidu/mobad/feeds/BaiduNative$VideoCacheListener;->onVideoDownloadFailed()V

    goto/16 :goto_8

    .line 53
    :cond_d
    invoke-interface {p1}, Lcom/baidu/mobads/openad/interfaces/event/IOAdEvent;->getType()Ljava/lang/String;

    move-result-object v0

    const-string v2, "AdImpression"

    invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_f

    .line 54
    iget-object v0, p0, Lcom/baidu/mobad/feeds/BaiduNative$CustomIOAdEventListener;->a:Lcom/baidu/mobad/feeds/BaiduNative;

    invoke-static {v0}, Lcom/baidu/mobad/feeds/BaiduNative;->a(Lcom/baidu/mobad/feeds/BaiduNative;)Lcom/baidu/mobad/feeds/BaiduNative$BaiduNativeNetworkListener;

    move-result-object v0

    instance-of v0, v0, Lcom/baidu/mobad/feeds/BaiduNative$NativeADEventListener;

    if-eqz v0, :cond_11

    .line 55
    invoke-interface {p1}, Lcom/baidu/mobads/openad/interfaces/event/IOAdEvent;->getData()Ljava/util/Map;

    move-result-object p1

    if-eqz p1, :cond_11

    .line 56
    invoke-interface {p1, v3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Ljava/lang/String;

    .line 57
    :goto_6
    iget-object v0, p0, Lcom/baidu/mobad/feeds/BaiduNative$CustomIOAdEventListener;->a:Lcom/baidu/mobad/feeds/BaiduNative;

    invoke-static {v0}, Lcom/baidu/mobad/feeds/BaiduNative;->d(Lcom/baidu/mobad/feeds/BaiduNative;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-ge v1, v0, :cond_11

    .line 58
    iget-object v0, p0, Lcom/baidu/mobad/feeds/BaiduNative$CustomIOAdEventListener;->a:Lcom/baidu/mobad/feeds/BaiduNative;

    invoke-static {v0}, Lcom/baidu/mobad/feeds/BaiduNative;->d(Lcom/baidu/mobad/feeds/BaiduNative;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/baidu/mobad/feeds/XAdNativeResponse;

    .line 59
    invoke-virtual {v0}, Lcom/baidu/mobad/feeds/XAdNativeResponse;->getUniqueId()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v2, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_e

    .line 60
    iget-object v2, p0, Lcom/baidu/mobad/feeds/BaiduNative$CustomIOAdEventListener;->a:Lcom/baidu/mobad/feeds/BaiduNative;

    invoke-static {v2}, Lcom/baidu/mobad/feeds/BaiduNative;->a(Lcom/baidu/mobad/feeds/BaiduNative;)Lcom/baidu/mobad/feeds/BaiduNative$BaiduNativeNetworkListener;

    move-result-object v2

    check-cast v2, Lcom/baidu/mobad/feeds/BaiduNative$NativeADEventListener;

    invoke-interface {v2, v0}, Lcom/baidu/mobad/feeds/BaiduNative$NativeADEventListener;->onADExposed(Lcom/baidu/mobad/feeds/NativeResponse;)V

    :cond_e
    add-int/lit8 v1, v1, 0x1

    goto :goto_6

    .line 61
    :cond_f
    invoke-interface {p1}, Lcom/baidu/mobads/openad/interfaces/event/IOAdEvent;->getType()Ljava/lang/String;

    move-result-object v0

    const-string v2, "AdStatusChange"

    invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_11

    .line 62
    iget-object v0, p0, Lcom/baidu/mobad/feeds/BaiduNative$CustomIOAdEventListener;->a:Lcom/baidu/mobad/feeds/BaiduNative;

    invoke-static {v0}, Lcom/baidu/mobad/feeds/BaiduNative;->f(Lcom/baidu/mobad/feeds/BaiduNative;)Lcom/baidu/mobad/feeds/BaiduNative$NativeDownloadListener;

    move-result-object v0

    if-eqz v0, :cond_11

    .line 63
    invoke-interface {p1}, Lcom/baidu/mobads/openad/interfaces/event/IOAdEvent;->getData()Ljava/util/Map;

    move-result-object v0

    .line 64
    invoke-interface {p1}, Lcom/baidu/mobads/openad/interfaces/event/IOAdEvent;->getMessage()Ljava/lang/String;

    move-result-object p1

    if-eqz v0, :cond_11

    .line 65
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_11

    .line 66
    :goto_7
    iget-object v0, p0, Lcom/baidu/mobad/feeds/BaiduNative$CustomIOAdEventListener;->a:Lcom/baidu/mobad/feeds/BaiduNative;

    invoke-static {v0}, Lcom/baidu/mobad/feeds/BaiduNative;->d(Lcom/baidu/mobad/feeds/BaiduNative;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-ge v1, v0, :cond_11

    .line 67
    iget-object v0, p0, Lcom/baidu/mobad/feeds/BaiduNative$CustomIOAdEventListener;->a:Lcom/baidu/mobad/feeds/BaiduNative;

    invoke-static {v0}, Lcom/baidu/mobad/feeds/BaiduNative;->d(Lcom/baidu/mobad/feeds/BaiduNative;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/baidu/mobad/feeds/XAdNativeResponse;

    .line 68
    invoke-virtual {v0}, Lcom/baidu/mobad/feeds/XAdNativeResponse;->isDownloadApp()Z

    move-result v2

    if-eqz v2, :cond_10

    invoke-virtual {v0}, Lcom/baidu/mobad/feeds/XAdNativeResponse;->getAppPackage()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {p1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_10

    .line 69
    iget-object v2, p0, Lcom/baidu/mobad/feeds/BaiduNative$CustomIOAdEventListener;->a:Lcom/baidu/mobad/feeds/BaiduNative;

    invoke-static {v2}, Lcom/baidu/mobad/feeds/BaiduNative;->f(Lcom/baidu/mobad/feeds/BaiduNative;)Lcom/baidu/mobad/feeds/BaiduNative$NativeDownloadListener;

    move-result-object v2

    invoke-interface {v2, v0}, Lcom/baidu/mobad/feeds/BaiduNative$NativeDownloadListener;->onADStatusChanged(Lcom/baidu/mobad/feeds/NativeResponse;)V

    :cond_10
    add-int/lit8 v1, v1, 0x1

    goto :goto_7

    :cond_11
    :goto_8
    return-void
.end method
